<?xml version="1.0" encoding="ISO-8859-1" ?>
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
	pageEncoding="ISO-8859-1"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@page import="com.bll.*" %>
<%@page import="java.util.ArrayList" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<%@page import="org.apache.jasper.tagplugins.jstl.core.ForEach"%><html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
<title>Insert title here</title>
<script type="text/javascript" src="./js/jquery-1.3.2.min.js"></script>
<script type="text/javascript" src="./js/jquery-ui-1.7.2.custom.min.js"></script>
<script type="text/javascript"
	src="./css/start/jquery-ui-1.7.2.custom.css"></script>
<script type="text/javascript">
	function toggle(id) {
		var tr = document.getElementById(id);
		if (tr == null) {
			return;
		}
		var bExpand = tr.style.display == '';
		tr.style.display = (bExpand ? 'none' : '');
	}
</script>
</head>
<body>
<% ArrayList<OriginBLO> originList = new OriginBLO().loadAllOrigin(); 
	out.print("<h1>test</h1>");
%>
<table>
	<tbody id="simpleSection">
		<tr>
			<td>Assigned To</td>
			<td><select name="assignedTo">
				<!--<c:forEach var="origin" items="${originList}" varStatus="list"  >
					<option value="${origin.originId}">${origin.displayText}</option>
				</c:forEach>
				-->
				<% for(OriginBLO origin : originList){
					out.println("<option value=" + origin.getOriginId() + ">" + origin.getDisplayText() + "</option>");
				}
				%>		
				</select>
			</td>
			<td>Status</td>
			<td><input type="select" name="status" /></td>
			<td>QC Activity</td>
			<td><input type="select" name="qcActivity" /></td>
		</tr>
		<tr>
			<td>Created By</td>
			<td><input type="Select" name="creatorId" /></td>
			<td>Severity</td>
			<td><input type="select" name="severity" /></td>
			<td>Module</td>
			<td><input type="select" name="product" /></td>
		</tr>
	</tbody>
	<tbody id="advSection">
		<tr>
			<td>Defect Owner</td>
			<td><input type="select" name="ownerId" /></td>
			<td>Defect Origin</td>
			<td><input type="select" name="origin" /></td>
			<td>Priority</td>
			<td><input type="select" name="priority" /></td>
		</tr>
		<tr>
			<td>Created from</td>
			<td><input type="text" name="createdFrom" /></td>
			<td>Created to</td>
			<td><input type="text" name="createdTo" /></td>
			<td>Type</td>
			<td><input type="select" name="type" /></td>
		</tr>
		<tr>
			<td>Fixed from</td>
			<td><input type="text" name="fixedFrom" /></td>
			<td>Fixed to</td>
			<td><input type="text" name="fixedTo" /></td>
			<td>Work Product</td>
			<td><input type="select" name="productType" /></td>
		</tr>
		<tr>
			<td>Defect ID</td>
			<td><input type="text" name="defectId" /></td>
			<td>Test Case ID</td>
			<td><input type="text" name="testcaseId" /></td>
			<td>Title</td>
			<td><input type="text" name="title" /></td>
		</tr>
	</tbody>
</table>
	<br/>
	<a href="#" id="showhideBnt" onclick="toggle('advSection')"></a>
</body>
</html>